package org.bizming.medicine.dao;

import java.util.List;

import org.bizming.medicine.model.Medicine;

public interface MedicineDao {

	/**
	 * 返回主键
	 * 
	 * @param t
	 * @return
	 */
	public int add(Medicine t);

	public Medicine get(int id);

	public int count();

	public boolean remove(int id);

	public List<Medicine> selectList();

	public boolean update(Medicine t);

	/**
	 * 卖出货物
	 * 
	 * @param id
	 * @param count
	 * @return
	 */
	public boolean decreCount(int id, int count);

	/**
	 * 撤销卖出货物
	 * 
	 * @param id
	 * @param count
	 * @return
	 */
	public boolean increCount(int id, int count);

}
